import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';
/**
 * @description: Request list interface parameters
 */
export type DemoParams = Partial<BasicPageParams>;

export interface Article {
  id?: number;
  title: string;
  description: string;
  content?: string;
  category: string;
  keywords: string;
  created_at?: string;
  updated_at?: string;
  status: number;
}

export interface Category {
  id: number;
  name: string;
}
/**
 * @description: Request list return value
 */
export type ArticleListResultModel = BasicFetchResult<Article>;

export type CategoryListResultModel = BasicFetchResult<Category>;

export interface Movie {
  id?: number;
  name: string;
  url: string;
  status: number;
  created_at?: string;
  updated_at?: string;
}
export interface MovieAdd {
  name: string;
  urls: string[];
}
export interface MovieUpdate {
  id: number;
  name: string;
  url: string;
}
export type MovieListResultModel = BasicFetchResult<Movie>;
